import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
	state: {
		user: {}
	},
	mutations: {
		setUser (state, user) {
			state.user = { ...user }
		},
	},
	getters: {
		getUser(state) {
			return state.user
		}
	}
})

export default store
